<?php

function list_component_konfigurasi_penggajian(){

my_set_code_css('
	.item-konfigurasi{
		float:left;
		width:120px;
		height:40px;
		background:#D40300;
		margin:3px;
		vertical-align: middle;
		text-align:center;
		border:2px solid #CDCDCD; 
		padding-top:5px;
	}
	.item-konfigurasi a{color:#fff; }
');
$labels = array(
	'cost center'=>'index.php?com=pos_biaya',
	'jurnal gaji'=>'index.php?com=jurnal_gaji',
	'tunjangan'=>'index.php?com=komponen_gaji&jid=1',
	'potongan'=>'index.php?com=komponen_gaji&jid=2',
	'iuran'=>'index.php?com=komponen_gaji&jid=3',
	'grade'=>'index.php?com=grade',
	'pengelompokan grade'=>'index.php?com=gol_grade',
	'konfigurasi pajak'=>'index.php?com=konfigurasi_pajak',
	'struktur gaji'=>'index.php?com=struktur_gaji', 
	'Ref Gaji Gol. Jabatan'=>'index.php?com=pr_gol_jabatan', 
	'Ref Gaji Profesi'=>'index.php?com=pr_perawat', 
		);
	
	$view ='<div style="width:100%;margin:-10px 0 0 5px;">';
	foreach($labels as $label=>$link){
	
		$view .=item_component_konfigurasi($label , $link);
	}
	$view .='<div style="clear:both"></div><div>';
	return $view;
}

function list_component_konfigurasi_diklat(){

my_set_code_css('
	.item-konfigurasi{
		float:left;
		width:120px;
		height:40px;
		background:#D40300;
		margin:3px;
		vertical-align: middle;
		text-align:center;
		border:2px solid #CDCDCD; 
		padding-top:5px;
	}
	.item-konfigurasi a{color:#fff; }
');
$labels = array( 
	'materi pelatihan'=>'index.php?com=materi_pelatihan',
	'kategori pelatihan'=>'index.php?com=kategori_pelatihan',
	'penyelenggara pelatihan'=>'index.php?com=penyelenggara_pelatihan', 
		);
	
	$view ='<div style="width:100%;margin:-10px 0 0 5px;">';
	foreach($labels as $label=>$link){
	
		$view .=item_component_konfigurasi($label , $link);
	}
	$view .='<div style="clear:both"></div><div>';
	return $view;
}

function list_component_konfigurasi_admin(){

my_set_code_css('
	.item-konfigurasi{
		float:left;
		width:120px;
		height:40px;
		background:#D40300;
		margin:3px;
		vertical-align: middle;
		text-align:center;
		border:2px solid #CDCDCD; 
		padding-top:5px;
	}
	.item-konfigurasi a{color:#fff; }
');
$labels = array( 
	'pendidikan'=>'index.php?com=pendidikan',
	'kelompok hobi'=>'index.php?com=kelompok_hobi',
	'kel. reimburstment'=>'index.php?com=kelompok_penggantian', 
	'greivance'=>'index.php?com=greivance', 
	'setting waktu kerja'=>'index.php?com=jadwal_kerja', 
	'greivance'=>'index.php?com=kalendar_shift', 
		);
	
	$view ='<div style="width:100%;margin:-10px 0 0 5px;">';
	foreach($labels as $label=>$link){
	
		$view .=item_component_konfigurasi($label , $link);
	}
	$view .='<div style="clear:both"></div><div>';
	return $view;
}
function list_component_konfigurasi_organisasi(){
my_set_code_css('
	.item-konfigurasi{
		float:left;
		width:120px;
		height:40px;
		background:#D40300;
		margin:3px;
		vertical-align: middle;
		text-align:center;
		border:2px solid #CDCDCD; 
		padding-top:5px;
	}
	.item-konfigurasi a{color:#fff; }
');
$labels = array(
	'setting struktur'=>'index.php?com=jabatan',  
	'struktur organisasi'=>'index.php?com=struktur_tree',
	'job specification'=>'index.php?com=jabatan_specification', 
	'job description'=>'index.php?com=jabatan_description',
	'man power'=>'index.php?com=jabatan_man_power',
	'career path'=>'index.php?com=jalur_karir',
	'spesifikasi fisik'=>'index.php?com=jabatan_physical',
	'kompetensi'=>'index.php?com=kompetensi&top=1',
	'job family'=>'index.php?com=keluarga_jabatan',
	'Gol. jabatan'=>'index.php?com=golongan_jabatan',
	'Nipar'=>'index.php?com=nipar',
	);
	
	$view ='<div style="width:100%;margin:-10px 0 0 5px;">';
	foreach($labels as $label=>$link){
	
		$view .=item_component_konfigurasi($label , $link);
	}
	$view .='<div style="clear:both"></div><div>';
	return $view;
}

function item_component_konfigurasi($label , $link){
	return '<div class="item-konfigurasi"> <a href="'.$link.'">'.ucfirst($label).'</a></div>';
}